import http from '@/common/http.js'

export async function recruitList(data) { //获取招考信息列表
	return await http({
		url: '/api/recruit/list',
		method: 'GET',
		data
	})
}

export async function getRecruit(id) { //获取招考信息列表
	return await http({
		url: `/api/recruit/${id}`,
		method: 'GET',
	})
}

export async function applyExamine(data) { //招考报名
	return await http({
		url: `/api/recruit/enroll`,
		method: 'POST',
		data
	})
}

export async function enrollDetail(id) { //招考报名详情
	return await http({
		url: `/api/recruit/enroll/${id}`,
		method: 'GET',
	})
}

export async function enrollList() { //获取招考报名信息列表
	return await http({
		url: `/api/recruit/enroll/list`,
		method: 'GET',
	})
}

export async function enrollUserInfo(id) { //根据ID获取招考报名详情信息(详细信息)
	return await http({
		url: `/api/recruit/get/enroll/${id}`,
		method: 'GET',
	})
}

export async function enrollInfo(id) { //根据ID获取招考报名详情信息(详细信息)
	return await http({
		url: `/api/recruit/user/enroll/${id}`,
		method: 'GET',
	})
}

export async function sendPayData(data) { //更新支付证据信息
	return await http({
		url: `/api/recruit/update/enroll`,
		method: 'POST',
		data
	})
}

export async function enrollData(id) { //根据ID获取招考报名详情信息(详细信息)
	return await http({
		url: `/api/recruit/enroll/${id}`,
		method: 'GET',
	})
}



